<div id='whole'>
<head>
   <link href="/site_media/css/page.css" site_media="screen" rel="Stylesheet" type="text/css" />
   <link href="/site_media/css/test.css" site_media="screen" rel="Stylesheet" type="text/css" />
</head>

<body>

<h2> Test Suite Runs </h2>

{% if testresults %}
    <ul>
        {% for testresult in testresults.object_list %}
            {% ifequal testrun.teststatus_id 4 %}
            <FONT COLOR="#CC9900">
            {% else %}{% ifequal testrun.teststatus_id 3 %}
                <FONT COLOR="#009900">
            {% else %}{% ifequal testrun.teststatus_id 2 %}
                <FONT COLOR="#000099">
            {% else %}{% ifequal testrun.teststatus_id 1 %}
                <FONT COLOR="#990000">
            {% else %}
                <FONT COLOR="#000000">
            {% endifequal %}
            {% endifequal %}
            {% endifequal %}
            {% endifequal %}
            <li><a href="{{ testrun.id }}">{{ testrun.id }}</a> | {{ testrun.testsuite }} | {{ testrun.author }} | {{ testrun.svnrev }} | {{ testrun.teststatus }} | {{ testrun.testtime }} </li>
            </FONT>
    {% endfor %}
    </ul>
{% else %}
    <p>No tests are available.</p>
{% endif %}


<div class="pagination">
    <span class="step-links">
        {% if testruns.has_previous %}
            <a href="?page={{ testruns.previous_page_number }}">previous</a>
        {% endif %}

        <span class="current">
            Page {{ testruns.number }} of {{ testruns.paginator.num_pages }}.
        </span>

        {% if testruns.has_next %}
            <a href="?page={{ testruns.next_page_number }}">next</a>
        {% endif %}
    </span>
</div>


<a href="..">up</a>
</body>
</div>
